import request from '@/utils/request'

export function getSuppliers(data) {
  return request({
    url: 'api/Supplier/GetAll',
    method: 'post',
    data
  })
}

export function addSupplier(data) {
  return request({
    url: 'api/Supplier/Create',
    method: 'post',
    data
  })
}

export function updSupplier(data) {
  return request({
    url: 'api/Supplier/Update',
    method: 'post',
    data
  })
}

export function delSupplier(id) {
  return request({
    url: 'api/Supplier/Delete',
    method: 'post',
    params: {
      id
    }
  })
}
